package com.fhz.fengmvvm.user;

import android.util.Log;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import com.fhz.fengmvvm.IModel;

import io.reactivex.Observable;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;

/**
 * 时间:11/8/21
 *
 * @author msfeng
 * 简述: TODO
 */
public class UserCenterModel implements IModel {
    private static final String TAG = "UserCenterModel";

    public LiveData<Food> getFood(){
        Api api = RetrofitFactory.getRetrofitFactory().create(Api.class);
        LiveData<Food> food = api.getFood();
        return food;
    }
}
